<template>
  <div class="container">
    <label for="">请输入账号</label>
    <el-input v-model="ip" label="请输入账号" class="ip-input"></el-input>
    <el-button type="primary" @click="jump">获取</el-button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      ip: ''
    }
  },
  methods: {
    jump () {
      this.$router.push({ path: '/home', query: { ip: this.ip }})
    }
  }
}
</script>
<style scoped>
.container{
  width: 50%;
  margin: 0 auto;
}
.ip-input{
  margin: 20px auto;
}
</style>
